﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;

namespace Model.Sys.Config
{
    /// <summary>
    /// 这里即使用static属性，属性的值也会随着AppSetting配置项的修改而及时修改
    /// </summary>
    public class CacheConfig
    {
        /// <summary>
        /// 缓存文件目录
        /// </summary>
        public static string CacheFilePath
        {
            get
            {
                return ConfigurationManager.AppSettings["CacheFilePath"];
            }
        }

        /// <summary>
        /// 缓存文件扩展名
        /// </summary>
        public static string CacheFileExtensionName
        {
            get
            {
                return ConfigurationManager.AppSettings["CacheFileExtensionName"];
            }
        }

        /// <summary>
        /// 缓存时间
        /// </summary>
        public static string CacheTime
        {
            get
            {
                return ConfigurationManager.AppSettings["CacheTime"];
            }
        }

    }
}
